package com.guguskins.back.service;

import com.alibaba.fastjson.JSONObject;
import com.guguskins.back.entity.GuPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-16
 */
public interface GuPermissionService extends IService<GuPermission> {


    List<String> selectPermissionValueByUserId(Integer userId);

    List<GuPermission> selectPermissionByUserId(Integer userId, boolean route);

    List<JSONObject> selectPermissionTreeByUserId(Integer userId, boolean route);

    int add(GuPermission permissionEntity);

    int edit(GuPermission permissionEntity);

    int updateStatus(Integer[] id, int status);

    List<GuPermission> queryAllMenu();
}
